{extend name="admin/public/base"/}
{block name="body"}
<div class="box box-primary">
	<div class="box-header with-border">
		<h3 class="box-title">{$meta_title}</h3>
	</div>
	<div class="box-body">
		<form method="post" class="form form-horizontal" role="form">
			<div class="form-group">
				<label class="col-lg-2 control-label">导航标题</label>
				<div class="col-lg-6">
					<input type="text" class="form-control" name="title" value="{$info.title|default=''}" data-rule="required">
					<span class="help-block">（用于显示的文字）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">当前标识</label>
				<div class="col-lg-6">
					<input type="text" class="form-control" name="active" value="{$info.active|default=''}">
					<span class="help-block">（当前标识）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">导航连接</label>
				<div class="col-lg-8">
					<input type="text" class="form-control" name="url" value="{$info.url|default=''}" data-rule="required">
					<span class="help-block">（用于调转的URL，支持带http://的URL或U函数参数格式）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">导航类型</label>
				<div class="col-lg-8">
					<select name="type" id="type" class="form-control selectpicker" style="width:auto; min-width: 150px;">
						{volist name="config['nav_type_list']" id="item"}
						<option value="{$item['key']}" {if isset($info['type']) && $info['type'] == $item['key']}selected{/if}>{$item['label']}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">父导航</label>
				<div class="col-lg-5">
					<select name="pid" class="form-control selectpicker" style="width:auto; min-width: 150px;">
						<option value="0">--一级导航--</option>
						{volist name=":parse_field_bind('Channel',$info['pid'], 0)" id="item"}
						{if $item['id'] != $info['id']}
						<option value="{$item['id']}" {if $pid == $item['id']}selected{/if}>{$item['title_show']}</option>
						{/if}
						{/volist}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">新窗口打开</label>
				<div class="col-lg-8">
					<select name="target" class="form-control selectpicker" style="width:auto; min-width: 150px;">
						<option value="0" >否</option>
						<option value="1" {if isset($info['target']) && $info['target'] == 1}selected{/if}>是
					</option>
				</select>
				<span class="help-block">（是否新窗口打开链接）</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-2 control-label">图标</label>
			<div class="col-lg-2">
				<input type="text" class="form-control" name="icon" value="{$info.icon|default=''}">
				<span class="help-block">输入图标英文</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-2 control-label">优先级</label>
			<div class="col-lg-2">
				<input type="text" class="form-control" name="sort" value="{$info.sort|default='1'}">
				<span class="help-block">（导航显示顺序）</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-2 control-label">文字颜色</label>
			<div class="col-lg-8">
				<input type="text" class="form-control" name="color" value="{$info['color']|default=''}">
				<span class="help-block">（右上角的标志点颜色，支持各类css表示方式）</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-2 control-label">标志点颜色</label>
			<div class="col-lg-8">
				<input type="text" class="form-control" name="band_color" value="{$info['band_color']|default=''}">
				<span class="help-block">（右上角的标志点颜色，支持各类css表示方式）</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-2 control-label">标志点文字</label>
			<div class="col-lg-8">
				<input type="text" class="form-control" name="band_text" value="{$info['band_text']|default=''}">
				<span class="help-block">（右上角的标志点文字，不要太长，没有自动隐藏）</span>
			</div>
		</div>

		<div class="form-group">
			<div class="col-lg-offset-2 col-lg-10">
				<input type="hidden" name="id" value="{$info.id|default=''}">
				<button class="btn btn-success submit-btn" type="submit">确 定</button>
				<button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
		</div>
	</form>
</div>
</div>
{/block}